package com.skmc.okcashbag.common;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;

public class IOManager {
	public static String read(InputStream is) throws IOException{
		ByteArrayOutputStream baos = new ByteArrayOutputStream();
		
		int c = -1;
		
		while((c=is.read()) != -1){
			baos.write(c);
		}
		
		String ret = new String(baos.toByteArray()).trim();
		
		baos.close();
		
		return ret; 
	}

}
